import { Layout } from 'antd';
const { Header, Footer, Sider, Content } = Layout;
import React from 'react';
import MyMenu from '@/components/MyMenu';
import { Switch, Route, Redirect } from 'react-router-dom';

export default function home(props: any) {
  // console.log('props:', props);

  return (
    <div>
      <Layout>
        <Sider
          style={{
            height: '100vh',
          }}
        >
          <MyMenu></MyMenu>
        </Sider>
        <Layout>
          <Header>头部</Header>
          <Content>{props.children}</Content>
        </Layout>
      </Layout>
    </div>
  );
}
